﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BullsAndCows
{
    public class ArrayShuffle
    {
        static public void Shuffle(int[] arr)
        {
            Random rand = new Random();
            for (int i = 0; i < arr.Length; i++ )
            {
                int j = rand.Next(arr.Length);

                int old = arr[i];
                arr[i] = arr[j];
                arr[j] = old;
            }
        }
    }
}
